<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/ringbuff.hpp 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">ringbuff.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d4/da3/ringbuff_8hpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#ifndef __RINGBUFF_HPP__</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#define __RINGBUFF_HPP__</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;thread&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &lt;mutex&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/d8d/namespacewheels.html">wheels</a></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>{</div>
<div class="foldopen" id="foldopen00025" data-start="{" data-end="};">
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html">   25</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d1/db2/classwheels_1_1rb.html">rb</a></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>{</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00028" data-start="{" data-end="};">
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843">   28</a></span>    <span class="keyword">enum</span> <a class="code hl_enumeration" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843">emErrCode</a>{</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843adc8ce530ea6f636cb03be0af6e84ee0f">   29</a></span>        <a class="code hl_enumvalue" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843adc8ce530ea6f636cb03be0af6e84ee0f">ERR_ALLOC_MEM</a> = -1000,      <span class="comment">// 内存分配失败</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843afa8ccc353b6a72a3d743595ec776f79f">   30</a></span>        <a class="code hl_enumvalue" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843afa8ccc353b6a72a3d743595ec776f79f">ERR_NO_DATA</a>,                <span class="comment">// 当前缓冲区没有数据</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a51a99a9395005f3084178be32a24b893">   31</a></span>        <a class="code hl_enumvalue" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a51a99a9395005f3084178be32a24b893">ERR_LESS_DATA</a>,              <span class="comment">// 当前数据长度少于请求长度</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a0cd4ca2524a21da78c7095c1f242301b">   32</a></span>        <a class="code hl_enumvalue" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a0cd4ca2524a21da78c7095c1f242301b">ERR_PTHREAD_MUTEX_INIT</a>,     <span class="comment">// 初始化pthread_mutex错误</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843ae630e5dacb5a8a2a7782d76bef75f22d">   33</a></span>        <a class="code hl_enumvalue" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843ae630e5dacb5a8a2a7782d76bef75f22d">ERR_SRC_NULL</a>,               <span class="comment">// 源数据指针空</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a2db6f5505fc8991cba50fbf467c6c259">   34</a></span>        <a class="code hl_enumvalue" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a2db6f5505fc8991cba50fbf467c6c259">ERR_DST_NULL</a>,               <span class="comment">// 目标数据指针空</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a414561fba8539eecbfbfcb084c9405fe">   35</a></span>        <a class="code hl_enumvalue" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a414561fba8539eecbfbfcb084c9405fe">ERR_DATA_NULL</a>,              <span class="comment">// 缓冲区指针空</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a82381052d9de2b8ec043ad7819eb57f0">   36</a></span>        <a class="code hl_enumvalue" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a82381052d9de2b8ec043ad7819eb57f0">ERR_IDX_CAN_NOT_FIND</a>,       <span class="comment">// 检索数据的时候没有找到内容</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>        <a class="code hl_enumvalue" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a89282d20ebf440f2a96ec63325566999">OK</a> = 0</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a89282d20ebf440f2a96ec63325566999">   38</a></span>    };</div>
</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>    <span class="keywordtype">void</span>      * __p_data;               <span class="comment">// 数据存储区</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>    <span class="keywordtype">size_t</span>      __m_maxSize;            <span class="comment">// 最大容量</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>    <span class="keywordtype">size_t</span>      __m_curr_len;           <span class="comment">// 当前占用量</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>    <span class="keywordtype">size_t</span>      __m_curr_add_point;     <span class="comment">// 当前插入点</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>    <span class="keywordtype">size_t</span>      __m_curr_get_point;     <span class="comment">// 当前取数据点</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>    std::mutex  __m_mutex;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>    <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#abd5c03132a045aacc6ee8ef8ebc75491">rb</a>( <span class="keywordtype">size_t</span> size = 65536 , <span class="keywordtype">bool</span> autoZero = <span class="keyword">true</span> );</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>    <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#abd5c03132a045aacc6ee8ef8ebc75491">rb</a>( <span class="keyword">const</span> <a class="code hl_class" href="../../d1/db2/classwheels_1_1rb.html">rb</a>&amp; b );</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>    <span class="keyword">virtual</span> <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#aecb50e4991fcfd79900e0ec2a03f0aa9">~rb</a>();</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    <a class="code hl_class" href="../../d1/db2/classwheels_1_1rb.html">rb</a>&amp; <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#a52eaddee8ef54c672443f211eada463c">operator=</a>( <span class="keyword">const</span> <a class="code hl_class" href="../../d1/db2/classwheels_1_1rb.html">rb</a>&amp; b );</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>    <a class="code hl_enumeration" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843">emErrCode</a> <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#a91a3740b9c0aed89cb704cccb84269d9">append</a>( <span class="keyword">const</span> <span class="keywordtype">void</span> * data , <span class="keywordtype">size_t</span> size );</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>    <a class="code hl_enumeration" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843">emErrCode</a> <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#ab572d952c783d952a2b0756131ce931b">get</a>( <span class="keywordtype">void</span> * data , <span class="keywordtype">size_t</span> size );</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>    <a class="code hl_enumeration" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843">emErrCode</a> <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#ab572d952c783d952a2b0756131ce931b">get</a>( <span class="keywordtype">void</span> * data , <span class="keywordtype">size_t</span> pos , <span class="keywordtype">size_t</span> size );</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#aa68fc1b23adeccb9c5bd190b314f4eef">clear</a>();</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>    <a class="code hl_enumeration" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843">emErrCode</a> <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#a398f5ebc48098ec601d9814d9bf07b83">resize</a>( <span class="keywordtype">size_t</span> size , <span class="keywordtype">bool</span> autoZero = <span class="keyword">false</span> );</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>    <span class="keywordtype">size_t</span> <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#a0eeb8d036de2d8416bf96ba32d655326">index</a>( <span class="keyword">const</span> <span class="keywordtype">void</span> * data , <span class="keywordtype">size_t</span> len );</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>    <span class="keywordtype">size_t</span> <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#a66c13981c71441bf12d0c513971cdb3c">length</a>();</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#aa5c4d9868c17ef09b28f56079b3ec3dd">drop</a>( <span class="keywordtype">size_t</span> len );</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>    <span class="keyword">static</span> std::string <a class="code hl_function" href="../../d1/db2/classwheels_1_1rb.html#a2a51ec140e566e46855b8ec979d8c515">errMsg</a>( <a class="code hl_enumeration" href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843">emErrCode</a> e );</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>};</div>
</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>}</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclasswheels_1_1rb_html"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html">wheels::rb</a></div><div class="ttdef"><b>定义</b> <a href="#l00025">ringbuff.hpp:26</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a0eeb8d036de2d8416bf96ba32d655326"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a0eeb8d036de2d8416bf96ba32d655326">wheels::rb::index</a></div><div class="ttdeci">size_t index(const void *data, size_t len)</div><div class="ttdoc">检索内容。这个函数检索出来的位置是相对于取数据起始位置的。</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00244">ringbuff.cpp:244</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a2a51ec140e566e46855b8ec979d8c515"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a2a51ec140e566e46855b8ec979d8c515">wheels::rb::errMsg</a></div><div class="ttdeci">static std::string errMsg(emErrCode e)</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00316">ringbuff.cpp:316</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a398f5ebc48098ec601d9814d9bf07b83"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a398f5ebc48098ec601d9814d9bf07b83">wheels::rb::resize</a></div><div class="ttdeci">emErrCode resize(size_t size, bool autoZero=false)</div><div class="ttdoc">重新分配内存大小。</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00223">ringbuff.cpp:223</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a43fba1cafe0f21ade8ab93f284b84843"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843">wheels::rb::emErrCode</a></div><div class="ttdeci">emErrCode</div><div class="ttdef"><b>定义</b> <a href="#l00028">ringbuff.hpp:28</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a43fba1cafe0f21ade8ab93f284b84843a0cd4ca2524a21da78c7095c1f242301b"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a0cd4ca2524a21da78c7095c1f242301b">wheels::rb::ERR_PTHREAD_MUTEX_INIT</a></div><div class="ttdeci">@ ERR_PTHREAD_MUTEX_INIT</div><div class="ttdef"><b>定义</b> <a href="#l00032">ringbuff.hpp:32</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a43fba1cafe0f21ade8ab93f284b84843a2db6f5505fc8991cba50fbf467c6c259"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a2db6f5505fc8991cba50fbf467c6c259">wheels::rb::ERR_DST_NULL</a></div><div class="ttdeci">@ ERR_DST_NULL</div><div class="ttdef"><b>定义</b> <a href="#l00034">ringbuff.hpp:34</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a43fba1cafe0f21ade8ab93f284b84843a414561fba8539eecbfbfcb084c9405fe"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a414561fba8539eecbfbfcb084c9405fe">wheels::rb::ERR_DATA_NULL</a></div><div class="ttdeci">@ ERR_DATA_NULL</div><div class="ttdef"><b>定义</b> <a href="#l00035">ringbuff.hpp:35</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a43fba1cafe0f21ade8ab93f284b84843a51a99a9395005f3084178be32a24b893"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a51a99a9395005f3084178be32a24b893">wheels::rb::ERR_LESS_DATA</a></div><div class="ttdeci">@ ERR_LESS_DATA</div><div class="ttdef"><b>定义</b> <a href="#l00031">ringbuff.hpp:31</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a43fba1cafe0f21ade8ab93f284b84843a82381052d9de2b8ec043ad7819eb57f0"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a82381052d9de2b8ec043ad7819eb57f0">wheels::rb::ERR_IDX_CAN_NOT_FIND</a></div><div class="ttdeci">@ ERR_IDX_CAN_NOT_FIND</div><div class="ttdef"><b>定义</b> <a href="#l00036">ringbuff.hpp:36</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a43fba1cafe0f21ade8ab93f284b84843a89282d20ebf440f2a96ec63325566999"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843a89282d20ebf440f2a96ec63325566999">wheels::rb::OK</a></div><div class="ttdeci">@ OK</div><div class="ttdef"><b>定义</b> <a href="#l00038">ringbuff.hpp:37</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a43fba1cafe0f21ade8ab93f284b84843adc8ce530ea6f636cb03be0af6e84ee0f"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843adc8ce530ea6f636cb03be0af6e84ee0f">wheels::rb::ERR_ALLOC_MEM</a></div><div class="ttdeci">@ ERR_ALLOC_MEM</div><div class="ttdef"><b>定义</b> <a href="#l00029">ringbuff.hpp:29</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a43fba1cafe0f21ade8ab93f284b84843ae630e5dacb5a8a2a7782d76bef75f22d"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843ae630e5dacb5a8a2a7782d76bef75f22d">wheels::rb::ERR_SRC_NULL</a></div><div class="ttdeci">@ ERR_SRC_NULL</div><div class="ttdef"><b>定义</b> <a href="#l00033">ringbuff.hpp:33</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a43fba1cafe0f21ade8ab93f284b84843afa8ccc353b6a72a3d743595ec776f79f"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a43fba1cafe0f21ade8ab93f284b84843afa8ccc353b6a72a3d743595ec776f79f">wheels::rb::ERR_NO_DATA</a></div><div class="ttdeci">@ ERR_NO_DATA</div><div class="ttdef"><b>定义</b> <a href="#l00030">ringbuff.hpp:30</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a52eaddee8ef54c672443f211eada463c"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a52eaddee8ef54c672443f211eada463c">wheels::rb::operator=</a></div><div class="ttdeci">rb &amp; operator=(const rb &amp;b)</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00058">ringbuff.cpp:58</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a66c13981c71441bf12d0c513971cdb3c"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a66c13981c71441bf12d0c513971cdb3c">wheels::rb::length</a></div><div class="ttdeci">size_t length()</div><div class="ttdoc">获取当前数据的长度</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00189">ringbuff.cpp:189</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_a91a3740b9c0aed89cb704cccb84269d9"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#a91a3740b9c0aed89cb704cccb84269d9">wheels::rb::append</a></div><div class="ttdeci">emErrCode append(const void *data, size_t size)</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00080">ringbuff.cpp:80</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_aa5c4d9868c17ef09b28f56079b3ec3dd"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#aa5c4d9868c17ef09b28f56079b3ec3dd">wheels::rb::drop</a></div><div class="ttdeci">void drop(size_t len)</div><div class="ttdoc">放弃给定长度的数据</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00198">ringbuff.cpp:198</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_aa68fc1b23adeccb9c5bd190b314f4eef"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#aa68fc1b23adeccb9c5bd190b314f4eef">wheels::rb::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">清除内容。同时将其他参数都设置成默认的初始值</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00211">ringbuff.cpp:211</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_ab572d952c783d952a2b0756131ce931b"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#ab572d952c783d952a2b0756131ce931b">wheels::rb::get</a></div><div class="ttdeci">emErrCode get(void *data, size_t size)</div><div class="ttdoc">拷贝数据到给定内存。</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00116">ringbuff.cpp:116</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_abd5c03132a045aacc6ee8ef8ebc75491"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#abd5c03132a045aacc6ee8ef8ebc75491">wheels::rb::rb</a></div><div class="ttdeci">rb(size_t size=65536, bool autoZero=true)</div><div class="ttdoc">构造对象，在默认的情况下构造一个64K BYTE的缓冲区，并且将缓冲区全部清除为0</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00012">ringbuff.cpp:12</a></div></div>
<div class="ttc" id="aclasswheels_1_1rb_html_aecb50e4991fcfd79900e0ec2a03f0aa9"><div class="ttname"><a href="../../d1/db2/classwheels_1_1rb.html#aecb50e4991fcfd79900e0ec2a03f0aa9">wheels::rb::~rb</a></div><div class="ttdeci">virtual ~rb()</div><div class="ttdef"><b>定义</b> <a href="../../de/daa/ringbuff_8cpp_source.html#l00052">ringbuff.cpp:52</a></div></div>
<div class="ttc" id="anamespacewheels_html"><div class="ttname"><a href="../../df/d8d/namespacewheels.html">wheels</a></div><div class="ttdoc">堆栈信息读取和保存记录</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00006">ary_str.hpp:7</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
